# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtrans
pkgver=1.5.1
pkgrel=0
pkgdesc="X transport library"
url="https://xorg.freedesktop.org/"
arch="noarch"
license="MIT"
makedepends="util-macros xmlto"
source="https://www.x.org/releases/individual/lib/xtrans-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/usr/lib
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib
}

sha512sums="
1a4bf3495ba401711b632972acf26bb82c2e8fd917a868ed21e510a1bb1ec57c145496baddb44de76e00c2d03dbf9e8592099623da4c065de3a7c5a804e87c1e  xtrans-1.5.1.tar.xz
"
